


<div class="nav_col">

    <div class="preview">
    <div class="contain">      

        <? $this->load->view('admin/previews/product_item_list', array("item" => $item))?>

    </div>             
    </div>   
                               
    <div class="buttons">                                                                                 

    <? if ($action == "view") { ?>

        <a href="<?=site_url('admin/products/edit/'.$item['id'])?>" class="button">edit</a>
        <? if($item['approved']==1) { ?>
            <? if ($item['active'] == 1){ ?>            
            <a href="<?=site_url('admin/products/deactivate/'.$item['id'])?>" class="button">deactivate</a>
            <? } else { ?> 
            <a href="<?=site_url('admin/products/activate/'.$item['id'])?>" class="button">activate</a>
            <? } ?>
        <? } else if(is_allowed(array(ROLE_ADMIN,ROLE_PUBLISHER))){ ?>
            <a href="<?=site_url('admin/products/approve/'.$item['id'])?>" class="button">approve</a>
        <? } ?>
        <a href="<?=site_url('admin/products/remove/'.$item['id'])?>" class="button">delete</a>

        <br /><br />
        <a href="<?=site_url('admin/products/copy/'.$item['id'])?>" class="button">copy</a> 
        <a href="<?=site_url('admin/products/pdf/'.$item['id'])?>" class="button">Download pdf</a>

        <? if ($item['approved']!=1){ ?>
            <div class="preview_unapproved">This item is pending approval</div>
        <? } else if ($item['active']!=1){ ?>
            <div class="preview_inactive">This item is inactive</div>
        <? } ?>

    <? } ?>

    </div>

</div>               


<div class="item_col preview">   

    <? $this->load->view('admin/previews/product_item_detail', array("item" => $item))?>

                
    <? if(!empty($cat)) { ?>
    <div class="summarycontainer">

        <div class="headercontain">
            <p>More about <?=$cat['Title_Categories']?>:</p>
        </div>

        <p>
            <?=$this->glossarymodel->link_glossary_terms($cat['Introduction_Categories'], TRUE)?>
        </p>

        <div>
            <?=$this->glossarymodel->link_glossary_terms($cat['Description_Categories'], TRUE)?>
        </div>

    </div>
    <? } ?>

</div>